//js
//全选控件
function CheckAll(){ 
	for (var ii=0;ii<eval(form1.elements.length);ii++){ 
		var e=form1.elements[ii]; 
		if (e.name!="allbox") e.checked=form1.allbox.checked; 
	}
}

//上传图片控件
function showUploadDialog(s_Type, s_Link, s_Thumbnail){
	var arr = showModalDialog("eWebEditor/dialog/i_upload.htm?style=popup&type="+s_Type+"&link="+s_Link+"&thumbnail="+s_Thumbnail, window, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");
}
function showUploadContent(s_Type, s_Link, s_Thumbnail){
	var arr = showModalDialog("../eWebEditor/dialog/i_upload.htm?style=popup&type="+s_Type+"&link="+s_Link+"&thumbnail="+s_Thumbnail, window, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");
}

//jq事件
$(function(){
	//表格底色变换
	$('#bgcolor tr:even').addClass('bg1');
		$('#bgcolor tr:odd').addClass('bg2');
		$('#bgcolor tr').hover(function(){
		$(this).addClass('bg3');
	},function(){
		$(this).removeClass('bg3');
	});
	
	//内容推荐、热点事件
	$("input[name='rec']").click(function(){
		$(this).attr('value','1');
	})
	$("input[name='hot']").click(function(){
		$(this).attr('value','1');
	});
	
	//内容缩影图
	$('.cont_pic').hover(function(){
		var loadpic=$(this).attr('src');
		var showpic=$(this).attr('ssrc');
		$(this).attr('src',showpic);
		$(this).attr('ssrc',loadpic);
		$(this).attr('height','120');
	},function(){
		var loadpic=$(this).attr('ssrc');
		var showpic=$(this).attr('src');
		$(this).attr('src',loadpic);
		$(this).attr('ssrc',showpic);
		$(this).attr('height','23');
	});
})